package com.huwaiwai.productor_consumer;

/**
 * 测试类
 * Created by huweiwei on 2017/4/24.
 */
public class DoMain {

    public static void main(String [] args){
        Clerk clerk = new Clerk();
        Producer producer = new Producer(clerk);
        Consumer consumer = new Consumer(clerk);
        new Thread(producer, "producer").start();
        new Thread(consumer, "consumer").start();
    }

}
